package tech.bmatch.image.model;

import java.util.Date;

/**
 * @program:StorePicture
 * @author:LinJinhao
 * @create:2018-10-29 20:18
 **/
public class Photo {
    //图片标识id
    private int id;
    //图片名称
    private String name;
    //图片格式
    private String type;
    //图片大小
    private float size;
    //图片高度
    private int height;
    //图片宽度
    private int width;
    //文件存储路径
    private String storePath;
    //文件上传日期
    private Date uploadDate;
    //用户标识id
    private String userId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public float getSize() {
        return size;
    }

    public void setSize(float size) {
        this.size = size;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public String getStorePath() {
        return storePath;
    }

    public void setStorePath(String storePath) {
        this.storePath = storePath;
    }

    public Date getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    @Override
    public String toString(){
        return "Photo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", size=" + size +
                ", height=" + height +
                ", width=" + width +
                ", storePath='" + storePath + '\'' +
                ", uploadDate=" + uploadDate +
                ", userId='" + userId + '\'' +
                '}';
    }
}
